<admintpl file="header"/>
<body class="J_scroll_fixed">
<div class="wrap jj">
  <ul class="nav nav-tabs">
     <li class="active"><a href="{:U('link/index')}">友情链接</a></li>
     <li><a href="{:U('link/add')}">添加链接</a></li>
  </ul>
  <div class="common-form">
    <form method="post" class="J_ajaxForm" action="{:U('Link/listorders')}">
      <div class="table_list">
	    <table width="100%" class="table table-hover">
	        <thead>
	          <tr>
	           	<th width="50">排序</th>
	            <th>ID</th>
	            <th>链接名称</th>
	            <th>链接地址</th>
	            <th width="120">操作</th>
	          </tr>
	        </thead>
	        <tbody>
	        	<foreach name="links" item="vo">
		        	<tr>
			        	<td><input name='listorders[{$vo.link_id}]' class="input input-order mr5"  type='text' size='3' value='{$vo.listorder}'></td>
			            <td>{$vo.link_id}</td>
			            <td>{$vo.link_name}</td>
			            <td><a href="{$vo.link_url}" target="_blank">{$vo.link_url}</a></td>
			            <td>
			            	<a href="{:U('link/edit',array('id'=>$vo['link_id']))}" >修改</a>|
				            <a href="{:U('link/delete',array('id'=>$vo['link_id']))}" class="J_ajax_del" >删除</a>
				        </td>
		          	</tr>
	          	</foreach>
			</tbody>
	      </table>
    <div class="form-actions">
    		<button class="btn btn-primary btn_submit mr10 J_ajax_submit_btn" type="submit">排序</button>
      </div>
  </div>
    </form>
  </div>
</div>
<script src="__ROOT__/statics/js/common.js?{$js_debug}"></script>
</body>
</html>